package cn.geodata.tools;

import java.io.IOException;
import java.util.logging.Logger;

import org.geotools.data.shapefile.ShapefileDataStore;
import org.geotools.feature.FeatureCollection;

public class TileManager {
	private Logger log = Logger.getAnonymousLogger();
	private FeatureCollection tiles;
	
	public TileManager() throws IOException{
		String _url = Configure.getConfig().getString("tile");
		
		ShapefileDataStore _dataStore = new ShapefileDataStore(Class.class.getResource(_url));
		this.tiles = _dataStore.getFeatureSource().getFeatures();
	}

	public FeatureCollection getTiles() {
		return tiles;
	}
}
